package demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-05-20
 * Time: 21:03
 */
interface ITest{

    int size = 10;//public static final

    void draw();//public abstract

    default public void func(){
        System.out.println("默认方法");
    }

    public static void fun2(){
        System.out.println("hhhhhhhh");
    }
}

class A implements ITest{
    @Override
    public void draw() {
        System.out.println("必须重写");
    }

    /*@Override
    public void func() {
        System.out.println("这个方法的重写 是可以选择的");
    }*/

}

public class Test {

    public static void main(String[] args) {
        //IShape iShape = new IShape();
    }
}
